import django_filters
from .models import *


class LogFilter(django_filters.rest_framework.FilterSet):
    """过滤器"""

    tableName = django_filters.CharFilter(lookup_expr='icontains')
    oldContent = django_filters.CharFilter(lookup_expr='icontains')
    newContent = django_filters.CharFilter(lookup_expr='icontains')
    class Meta:
        model = Log
        fields = '__all__'
